<?php
	include_once '../includes/function.php'
?>

<div class="art-block">
  <div class="art-block-body">
    <div class="art-blockheader">
      <div class="l"></div>
      <div class="r"></div>
      <h3 class="t">Xem đơn hàng</h3>
    </div>
    <div class="art-blockcontent">
      <div class="art-blockcontent-tl"></div>
      <div class="art-blockcontent-tr"></div>
      <div class="art-blockcontent-bl"></div>
      <div class="art-blockcontent-br"></div>
      <div class="art-blockcontent-tc"></div>
      <div class="art-blockcontent-bc"></div>
      <div class="art-blockcontent-cl"></div>
      <div class="art-blockcontent-cr"></div>
      <div class="art-blockcontent-cc"></div>
      <div class="art-blockcontent-body">
        <form action="../orders/view_order.html" method="post">
          <p style="color:blue">Mã đơn hàng</p>
          <p>
            <input type="text" value="<?php echo $_SESSION['ma_hoa_don'];$_SESSION['ma_hoa_don']='';?>" name="ma_hoa_don" class="text">
          </p>
          <p style="color:blue">Mã bảo vệ</p>
          <script language="javascript">
				function doi_hinh() {
					var x = '../includes/randompic.php?a=' + Math.random();
					document.getElementById('hinh').src = x;
				}
				//var angle = 1; $(document).ready(function() { setInterval(function() { $("#pic").rotate(angle); }, 100); });
			</script>
            
          <p><img src="../includes/randompic.php" style="margin: 0pt; padding: 0pt; vertical-align: middle;" id="hinh"> <img src="../images/refresh.png" onclick="doi_hinh()" style="margin-bottom: -10px;padding-left: 4px;width: 26px;" title="Đổi ảnh khác" id="pic" /></p>
          <p style="color:blue">Nhập mã bảo vệ</p>
          <p>
            <input type="text" name="ma_bao_ve" class="text">
          </p>
          <p style="text-align:center">
            <input type="submit" class="button" value="THỰC HIỆN" />
          </p>
        </form>
        <div class="cleared"></div>
      </div>
    </div>
    <div class="cleared"></div>
  </div>
</div>
